package com.rmi.hello;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * Created by buguniao on 15/12/8.
 */
public class HelloRemoteImpl1 extends UnicastRemoteObject implements HelloRemote {
    private static final long serialVersionUID = -6209023821784985143L;

    protected HelloRemoteImpl1() throws RemoteException {
        super();
    }
    public String sayHello(User user) throws RemoteException {
        return "Hello, " + user.getName();
    }

}
